import request from '@/utils/request'

// 自助机列表
export function getPage(query) {
    return request({
        url: '/jxstation/terminal/getPage',
        method: 'get',
        params: query
    })
}
// 新增自助机登记信息
export function add(query) {
    return request({
        url: '/jxstation/terminal/add',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 添加自有自助机
export function machine(query) {
    return request({
        url: '/jxstation/machine/add',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 添加自有自助机配置
export function ATMTicket(query) {
    return request({
        url: '/jxstation/ATMTicket/add',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 编辑自有自助机配置
export function modify(query) {
    return request({
        url: '/jxstation/ATMTicket/modify',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
